﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Win7Helper.Helper;

namespace Win7Helper.ThemeWindows
{
    public partial class UserBootZero : UserControl
    {
        public UserBootZero()
        {
            InitializeComponent();
            FillData();
        }

        private void FillData()
        {

            label2.Text = label2.Text + XmlHelper.GetFirstValue(XmlHelper.SelectNode(StaticValue.XmlText, "userinfo/username"));

            label5.Text = label5.Text + XmlHelper.GetFirstValue(XmlHelper.SelectNode(StaticValue.XmlText, "userinfo/winthemename"));
      
            label1.Text = string.Format("Windows主题：{0} 安装向导", XmlHelper.GetFirstValue(XmlHelper.SelectNode(StaticValue.XmlText, "userinfo/winthemename")));

            label3.Text = label3.Text + XmlHelper.GetFirstValue(XmlHelper.SelectNode(StaticValue.XmlText, "userinfo/createtime"));
            label4.Text = label4.Text + XmlHelper.GetFirstValue(XmlHelper.SelectNode(StaticValue.XmlText, "userinfo/version"));
            pictureBox1.Image=Resource1.themesidebar;
        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            ClickHelper.OpenWebBower(StaticValue.PublicityLink);
        }
    }
}
